<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title th:text="${title}">标题</title>
    <meta charset="UTF-8">
</head>
<body>
<body>
<div align="center">
    <form th:action="@{/user/loginCheck.html}" method="post">
        <table border="2" align="center" cellspacing="0" cellpadding="0" frame="void" rules="none">
            <tr>
                <td align="right">用户名：</td>
                <td align="left"><input type="text" name="username" ></td>
            </tr>
            <tr>
                <td align="right">密码：</td>
                <td align="left"><input type="password" name="password" ></td>
            </tr>
        </table>
        <p align="center">
            <input type="submit" value="登陆">
            <input type="reset" value="重置">
            <a href="toRegister.html">注册</a>
        </p>
    </form>
    <p style="color:red" align="center" th:text="${error}" th:if="${not #strings.isEmpty(error)}">
    </p>
    <p>当前在线人数<span th:text="${onlinecount}"></span></p>
</div>
</body>